package com.education.welco.service.impl;

import com.education.welco.mapper.LShareMapper;
import com.education.welco.pojo.LShare;
import com.education.welco.service.LShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 我的分享 服务层实现
 *
 * @author d
 * @date 2020-09-17 09:22:07
 */
@Service
public class LShareServiceImpl implements LShareService {

    @Autowired
    private LShareMapper lShareMapper;

    //查询我的分享信息
    @Override
    public LShare selectLShareById(Integer id) {
        return lShareMapper.selectLShareById(id);
    }

    // 查询我的分享列表
    @Override
    public List<LShare> selectLShareList(LShare lShare) {
        return lShareMapper.selectLShareList(lShare);
    }

    // 新增我的分享
    @Override
    public int insertLShare(LShare lShare) {
        return lShareMapper.insertLShare(lShare);
    }

    //修改我的分享
    @Override
    public int updateLShare(LShare lShare) {
        return lShareMapper.updateLShare(lShare);
    }

    //删除我的分享对象
    @Override
    public int deleteLShareByIds(String ids) {
        return lShareMapper.deleteLShareByIds(ids.split(","));
    }
}